<html>
<body>
    <p>Test error recovery in media query.</p>
    <style>
        @media ({});

        #test1 {
            display: none;
        }
    </style>

    <style>
        @media [{}];

        #test2 {
            display: none;
        }
    </style>

    <div id="test1">Test 1 failed</div>
    <div id="test2">Test 2 failed</div>
</body>
<script type="text/javascript">
if (window.testRunner)
    testRunner.dumpAsText();
</script>
</html>
